package com.ruoyi.app.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商户管理业务对象
 *
 * @author Zach
 * @date 2023-11-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppMerchantBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商户名称
     */
    @NotBlank(message = "商户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 用户
     */
    @NotNull(message = "用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 门头照片
     */
    private String headPhoto;

    /**
     * 店内照片
     */
    private String storePhoto;

    /**
     * 收银台照片
     */
    private String cashierPhoto;

    /**
     * 营业执照
     */
    @NotBlank(message = "营业执照不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessLicense;

    /**
     * 主营类目
     */
    @NotBlank(message = "主营类目不能为空", groups = { AddGroup.class, EditGroup.class })
    private String priCategory;

    /**
     * 公司营业代码
     */
    private String companyCode;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 联系人姓名
     */
    @NotBlank(message = "联系人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactName;
    /**
     * 联系方式
     */
    @NotBlank(message = "联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactPhone;
}
